package com.netease.pris.activity.view;

import android.view.View;
import android.widget.Adapter;
import android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParams;
import android.widget.LinearLayout.LayoutParams;

public class a
{
  private int b;
  private FrameLayout c;
  private FrameLayout d = null;
  private FrameLayout e = null;
  private View f = null;
  private int g;

  public a(FlingGallery paramFlingGallery, int paramInt, FrameLayout paramFrameLayout)
  {
    this.b = paramInt;
    this.c = paramFrameLayout;
    this.d = new FrameLayout(FlingGallery.i(paramFlingGallery));
    this.d.setLayoutParams(new LinearLayout.LayoutParams(-1, -1));
    this.e = new FrameLayout(FlingGallery.i(paramFlingGallery));
    this.e.setLayoutParams(new FrameLayout.LayoutParams(-1, -1));
    this.c.addView(this.e);
  }

  public Object a(int paramInt1, int paramInt2, Object paramObject)
  {
    if ((this.f instanceof bp));
    for (Object localObject = ((bp)this.f).a(paramInt1, paramInt2, paramObject); ; localObject = null)
      return localObject;
  }

  public void a()
  {
    if (this.d != null)
    {
      this.d.removeAllViews();
      this.d = null;
    }
    if (this.e != null)
    {
      this.e.removeAllViews();
      this.e = null;
    }
    if (this.f != null)
      this.f = null;
  }

  public void a(int paramInt)
  {
    if ((this.f instanceof bp))
      ((bp)this.f).h(paramInt);
  }

  public void a(int paramInt1, int paramInt2)
  {
    if ((this.f instanceof bp))
      ((bp)this.f).a(paramInt1, paramInt2);
  }

  public void a(int paramInt1, int paramInt2, int paramInt3)
  {
    this.e.scrollTo(paramInt1 + FlingGallery.a(this.a, this.b, paramInt3), paramInt2);
  }

  public void a(int paramInt, boolean paramBoolean)
  {
    if ((this.f instanceof bp))
      ((bp)this.f).a(paramInt, paramBoolean);
  }

  public void a(s params)
  {
    if ((params != null) && ((this.f instanceof ah)))
      ((ah)this.f).a(params);
  }

  public boolean a(String paramString)
  {
    if ((this.f instanceof bp));
    for (boolean bool = ((bp)this.f).a(paramString); ; bool = false)
      return bool;
  }

  public int b()
  {
    return this.g;
  }

  /** @deprecated */
  public void b(int paramInt)
  {
    monitorenter;
    try
    {
      if ((this.f instanceof bp))
        ((bp)this.f).g(paramInt);
      monitorexit;
      return;
    }
    finally
    {
      localObject = finally;
      monitorexit;
    }
    throw localObject;
  }

  public boolean b(int paramInt1, int paramInt2, Object paramObject)
  {
    if ((this.f instanceof bp));
    for (boolean bool = ((bp)this.f).b(paramInt1, paramInt2, paramObject); ; bool = false)
      return bool;
  }

  public boolean b(String paramString)
  {
    if ((this.f instanceof bp));
    for (boolean bool = ((bp)this.f).b(paramString); ; bool = false)
      return bool;
  }

  public int c()
  {
    return this.e.getScrollX();
  }

  public void c(int paramInt)
  {
    if ((this.f instanceof bp))
      ((bp)this.f).i(paramInt);
  }

  public void d()
  {
    this.e.requestFocus();
  }

  public void d(int paramInt)
  {
    if ((this.f instanceof bp))
      ((bp)this.f).e(paramInt);
  }

  /** @deprecated */
  public void e(int paramInt)
  {
    monitorenter;
    while (true)
    {
      try
      {
        this.g = paramInt;
        View localView = this.f;
        if (FlingGallery.j(this.a) == null)
          continue;
        if ((paramInt >= this.a.h()) && (paramInt <= this.a.i()))
        {
          if (this.f != this.d)
            continue;
          this.f = FlingGallery.j(this.a).getView(paramInt, null, this.e);
          if (localView == this.f)
            continue;
          if (localView == null)
            continue;
          this.e.removeView(localView);
          if (this.f == null)
            continue;
          this.e.addView(this.f, new FrameLayout.LayoutParams(-1, -1));
          if (this.f == null)
            continue;
          a(FlingGallery.k(this.a), this.b);
          a(FlingGallery.l(this.a));
          b(FlingGallery.m(this.a));
          return;
          this.f = FlingGallery.j(this.a).getView(paramInt, this.f, this.e);
          continue;
        }
      }
      finally
      {
        monitorexit;
      }
      this.f = this.d;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.view.a
 * JD-Core Version:    0.6.0
 */